home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10289 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: solon.com!not-for-mail
  2. From: walterm@hprctbs3.rose.hp.com (Walter Murray)
  3. Newsgroups: comp.lang.c,comp.lang.c.moderated,hp.unix,comp.sys.hp.apps,comp.sys.hp.hpux
  4. Subject: Re: C coding problem
  5. Followup-To: comp.lang.c,comp.lang.c.moderated,hp.unix,comp.sys.hp.apps,comp.sys.hp.hpux
  6. Date: 16 Mar 1996 10:21:52 -0600
  7. Organization: Hewlett Packard Roseville Site
  8. Sender: clc@solutions.solon.com
  9. Approved: clc@solutions.solon.com
  10. Message-ID: <4iepr0$afp@solutions.solon.com>
  11. References: <4ianbf$h86@solutions.solon.com>
  12. NNTP-Posting-Host: solutions.solon.com
  13. X-Newsreader: TIN [version 1.2 PL2]
  14.  
  15. Stephen Proctor (proctor@corp.hp.com) wrote:
  16.  
  17. : Note: c89 is the HP-UX POSIX-conformant C compiler
  18. : Where can a list of warning and error codes be found for this compiler?
  19.  
  20. In the HP C/HP-UX Reference Manual, HP part number 92453-90024.
  21.  
  22. : % c89 shell.c -o shell
  23. : cc: "shell.c", line 98: warning 608: Illegal integer-pointer 
  24. : combination in assignment.
  25.  
  26. :    if (*argv[ii] == '-') option_val = read_options;
  27.  
  28. You haven't shown how read_options is declared.  If it is a pointer,
  29. that would explain the warning.  A pointer should not be assigned
  30. to an integer.
  31.  
  32. Walter Murray
  33.